// 以下文件格式为描述路由的协议格式
// 你可以调整 routerConfig 里的内容
// 变量名 routerConfig 为 iceworks 检测关键字，请不要修改名称

import AsideLayout from './layouts/AsideLayout';
import BlankLayout from './layouts/BlankLayout';
import Home from './pages/Home';
import ErpLogin from './pages/ErpLogin';
import ErpGoods from './pages/ErpGoods';
import ErpOrder from './pages/ErpOrder';
import ErpCustomer from './pages/ErpCustomer';
import NotFound from './pages/NotFound';
import ErpSetting from './pages/ErpSetting';
import ErpUserList from './pages/ErpSynthesis/components/ErpUserList';
import ErpSynthesis from './pages/ErpSynthesis';
import ErpSystem from './pages/ErpSystem/ErpSystem';

const routerConfig = [
  {
    path: '/',
    layout: AsideLayout,
    component: Home,
  },
  {
    path: '/login',
    layout: BlankLayout,
    component: ErpLogin,
  },
  {
    path: '/goods',
    layout: AsideLayout,
    component: ErpGoods,
  },
  {
    path: '/order',
    layout: AsideLayout,
    component: ErpOrder,
  },
  {
    path: '/customer',
    layout: AsideLayout,
    component: ErpCustomer,
  },
  {
    path: '/setting/:path',
    layout: AsideLayout,
    component: ErpSetting,
  },
  {
    path: '/synthesis/:path',
    layout: AsideLayout,
    component: ErpSynthesis,
  },
  {
    path: '/userList',
    layout: BlankLayout,
    component: ErpUserList,
  },
  {
    path: '/system/:path',
    layout: AsideLayout,
    component: ErpSystem,
  },
  {
    path: '*',
    layout: AsideLayout,
    component: NotFound,
  },
];

export default routerConfig;
